extends Panel

@onready var show:Sprite2D=$CenterContainer/Panel/Show
@onready var text:Label=$Label

func update(cell:BagCell):
	show.visible=!!cell.item
	text.visible=!!cell.item
	if !cell.item:return
	show.texture=cell.item.texture
	text.visible=cell.amount>1
	text.text=str(cell.amount)
		

	
